package com.quyunshuo.module.home.activity.main.compose

import android.os.Parcel
import android.os.Parcelable
import androidx.annotation.StringRes
import com.quyunshuo.module.home.R
import kotlinx.parcelize.Parcelize

// 咖啡产品数据类
@Parcelize
data class CoffeeProduct(
    val id: String, // 产品唯一标识
    @StringRes
    val name: Int,
    @StringRes
    val calories: Int,
    @StringRes
    val time: Int,
    @StringRes
    val notes: Int
):Parcelable

// 获取所有咖啡产品
fun getAllCoffeeProducts(): List<CoffeeProduct> {

    return listOf(
        CoffeeProduct(
            id = "iced_americano",
            name = R.string.iced_americano_name,
            calories = R.string.iced_americano_calories,
            time = R.string.iced_americano_time,
            notes = R.string.iced_americano_notes
        ),
        CoffeeProduct(
            id = "orange_c_americano",
            name = R.string.orange_c_americano_name,
            calories = R.string.orange_c_americano_calories,
            time = R.string.orange_c_americano_time,
            notes = R.string.orange_c_americano_notes
        ),
        CoffeeProduct(
            id = "coconut_water_americano",
            name = R.string.coconut_water_americano_name,
            calories = R.string.coconut_water_americano_calories,
            time = R.string.coconut_water_americano_time,
            notes = R.string.coconut_water_americano_notes
        ),
        CoffeeProduct(
            id = "sparkling_americano",
            name = R.string.sparkling_americano_name,
            calories = R.string.sparkling_americano_calories,
            time = R.string.sparkling_americano_time,
            notes = R.string.sparkling_americano_notes
        ),
        CoffeeProduct(
            id = "lemon_iced_americano",
            name = R.string.lemon_iced_americano_name,
            calories = R.string.lemon_iced_americano_calories,
            time = R.string.lemon_iced_americano_time,
            notes = R.string.lemon_iced_americano_notes
        ),
        CoffeeProduct(
            id = "osmanthus_americano",
            name = R.string.osmanthus_americano_name,
            calories = R.string.osmanthus_americano_calories,
            time = R.string.osmanthus_americano_time,
            notes = R.string.osmanthus_americano_notes
        ),
        CoffeeProduct(
            id = "grapefruit_cold_brew",
            name = R.string.grapefruit_cold_brew_name,
            calories = R.string.grapefruit_cold_brew_calories,
            time = R.string.grapefruit_cold_brew_time,
            notes = R.string.grapefruit_cold_brew_notes
        ),
        CoffeeProduct(
            id = "mint_americano",
            name = R.string.mint_americano_name,
            calories = R.string.mint_americano_calories,
            time = R.string.mint_americano_time,
            notes = R.string.mint_americano_notes
        ),
        CoffeeProduct(
            id = "caramel_americano",
            name = R.string.caramel_americano_name,
            calories = R.string.caramel_americano_calories,
            time = R.string.caramel_americano_time,
            notes = R.string.caramel_americano_notes
        ),
        CoffeeProduct(
            id = "rose_salt_americano",
            name = R.string.rose_salt_americano_name,
            calories = R.string.rose_salt_americano_calories,
            time = R.string.rose_salt_americano_time,
            notes = R.string.rose_salt_americano_notes
        )
    )
}